package com.sjr.easy.chat.dto;

import com.sjr.easy.chat.model.Sequence;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.concurrent.locks.ReentrantLock;

@Data
@EqualsAndHashCode(callSuper = true)
public class SequenceDTO extends Sequence {
    // 下一个ID
    private Long nextId;

    private final ReentrantLock lock = new ReentrantLock();

    private Long lastModifyTime;
}
